home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3x / curs_getwch.z / curs_getwch
Encoding:
Text File  |  1998-10-20  |  12.8 KB  |  333 lines

  1.  
  2.  
  3.  
  4. ccccuuuurrrrssss____ggggeeeettttwwwwcccchhhh((((3333XXXX))))                                                ccccuuuurrrrssss____ggggeeeettttwwwwcccchhhh((((3333XXXX))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _cccc_uuuu_rrrr_ssss______gggg_eeee_tttt_wwww_cccc_hhhh: _gggg_eeee_tttt_wwww_cccc_hhhh, _wwww_gggg_eeee_tttt_wwww_cccc_hhhh, _mmmm_vvvv_gggg_eeee_tttt_wwww_cccc_hhhh, _mmmm_vvvv_wwww_gggg_eeee_tttt_wwww_cccc_hhhh, _uuuu_nnnn_gggg_eeee_tttt_wwww_cccc_hhhh - get (or
  10.      push back) _wwww_cccc_hhhh_aaaa_rrrr______tttt characters from _cccc_uuuu_rrrr_ssss_eeee_ssss terminal keyboard
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_cccc_uuuu_rrrr_ssss_eeee_ssss_...._hhhh_>>>>
  14.  
  15.      _iiii_nnnn_tttt _gggg_eeee_tttt_wwww_cccc_hhhh_((((_vvvv_oooo_iiii_dddd_))))_;;;;
  16.      _iiii_nnnn_tttt _wwww_gggg_eeee_tttt_wwww_cccc_hhhh_((((_WWWW_IIII_NNNN_DDDD_OOOO_WWWW _****_wwww_iiii_nnnn_))))_;;;;
  17.      _iiii_nnnn_tttt _mmmm_vvvv_gggg_eeee_tttt_wwww_cccc_hhhh_((((_iiii_nnnn_tttt _yyyy_,,,, _iiii_nnnn_tttt _xxxx_))))_;;;;
  18.      _iiii_nnnn_tttt _mmmm_vvvv_wwww_gggg_eeee_tttt_wwww_cccc_hhhh_((((_WWWW_IIII_NNNN_DDDD_OOOO_WWWW _****_wwww_iiii_nnnn_,,,, _iiii_nnnn_tttt _yyyy_,,,, _iiii_nnnn_tttt _xxxx_))))_;;;;
  19.      _iiii_nnnn_tttt _uuuu_nnnn_gggg_eeee_tttt_wwww_cccc_hhhh_((((_iiii_nnnn_tttt _wwww_cccc_hhhh_))))_;;;;
  20.  
  21. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.      The _gggg_eeee_tttt_wwww_cccc_hhhh, _wwww_gggg_eeee_tttt_wwww_cccc_hhhh, _mmmm_vvvv_gggg_eeee_tttt_wwww_cccc_hhhh, and _mmmm_vvvv_wwww_gggg_eeee_tttt_wwww_cccc_hhhh routines read an _E_U_C
  23.      character from the terminal associated with the window, transform it into
  24.      a _wwww_cccc_hhhh_aaaa_rrrr______tttt character, and return a _wwww_cccc_hhhh_aaaa_rrrr______tttt character.  In no-delay mode,
  25.      if no input is waiting, the value _EEEE_RRRR_RRRR is returned.  In delay mode, the
  26.      program waits until the system passes text through to the program.
  27.      Depending on the setting of _cccc_bbbb_rrrr_eeee_aaaa_kkkk, this is after one character (_cccc_bbbb_rrrr_eeee_aaaa_kkkk
  28.      mode), or after the first newline (_nnnn_oooo_cccc_bbbb_rrrr_eeee_aaaa_kkkk mode).  In half-delay mode,
  29.      the program waits until a character is typed or the specified timeout has
  30.      been reached.  Unless _nnnn_oooo_eeee_cccc_hhhh_oooo has been set, the character will also be
  31.      echoed into the designated window.
  32.  
  33.      If the window is not a pad, and it has been moved or modified since the
  34.      last call to _wwww_rrrr_eeee_ffff_rrrr_eeee_ssss_hhhh, _wwww_rrrr_eeee_ffff_rrrr_eeee_ssss_hhhh will be called before another character
  35.      is read.
  36.  
  37.      If _kkkk_eeee_yyyy_pppp_aaaa_dddd is _TTTT_RRRR_UUUU_EEEE, and a function key is pressed, the token for that
  38.      function key is returned instead of the raw characters.  Possible
  39.      function keys are defined in _<<<<_cccc_uuuu_rrrr_ssss_eeee_ssss_...._hhhh_>>>> with integers beginning with
  40.      _0000_4444_0000_1111, whose names begin with _KKKK_EEEE_YYYY______....  If a character that could be the
  41.      beginning of a function key (such as escape) is received, _cccc_uuuu_rrrr_ssss_eeee_ssss sets a
  42.      timer.  If the remainder of the sequence does not come in within the
  43.      designated time, the character is passed through; otherwise, the function
  44.      key value is returned.  For this reason, many terminals experience a
  45.      delay between the time a user presses the escape key and the escape is
  46.      returned to the program.
  47.  
  48.      The _uuuu_nnnn_gggg_eeee_tttt_wwww_cccc_hhhh routine places _w_c_h back onto the input queue to be returned
  49.      by the next call to _wwww_gggg_eeee_tttt_wwww_cccc_hhhh.
  50.  
  51.    FFFFuuuunnnnccccttttiiiioooonnnn KKKKeeeeyyyyssss
  52.      The following function keys, defined in _<<<<_cccc_uuuu_rrrr_ssss_eeee_ssss_...._hhhh_>>>>, might be returned by
  53.      _gggg_eeee_tttt_wwww_cccc_hhhh if _kkkk_eeee_yyyy_pppp_aaaa_dddd has been enabled.  Note that not all of these may be
  54.      supported on a particular terminal if the terminal does not transmit a
  55.      unique code when the key is pressed or if the definition for the key is
  56.      not present in the _tttt_eeee_rrrr_mmmm_iiii_nnnn_ffff_oooo database.
  57.  
  58.  
  59.  
  60.  
  61.                                                                         PPPPaaaaggggeeee 1111
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. ccccuuuurrrrssss____ggggeeeettttwwwwcccchhhh((((3333XXXX))))                                                ccccuuuurrrrssss____ggggeeeettttwwwwcccchhhh((((3333XXXX))))
  69.  
  70.  
  71.  
  72.      __________________________________________________________________
  73.      Name                 Key name
  74.      __________________________________________________________________
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.                                                                         PPPPaaaaggggeeee 2222
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.      KEY_BREAK            Break key
  136.      KEY_DOWN             The four arrow keys ...
  137.      KEY_UP
  138.      KEY_LEFT
  139.      KEY_RIGHT
  140.      KEY_HOME             Home key (upward+left arrow)
  141.      KEY_BACKSPACE        Backspace
  142.      KEY_F0               Function keys; space for 64 keys is reserved.
  143.      KEY_F(_n)             For 0 _< _n _< 63
  144.      KEY_DL               Delete line
  145.      KEY_IL               Insert line
  146.      KEY_DC               Delete character
  147.      KEY_IC               Insert char or enter insert mode
  148.      KEY_EIC              Exit insert char mode
  149.      KEY_CLEAR            Clear screen
  150.      KEY_EOS              Clear to end of screen
  151.      KEY_EOL              Clear to end of line
  152.      KEY_SF               Scroll 1 line forward
  153.      KEY_SR               Scroll 1 line backward (reverse)
  154.      KEY_NPAGE            Next page
  155.      KEY_PPAGE            Previous page
  156.      KEY_STAB             Set tab
  157.      KEY_CTAB             Clear tab
  158.      KEY_CATAB            Clear all tabs
  159.      KEY_ENTER            Enter or send
  160.      KEY_SRESET           Soft (partial) reset
  161.      KEY_RESET            Reset or hard reset
  162.      KEY_PRINT            Print or copy
  163.                           Home down or bottom (lower left).  Keypad is
  164.                           arranged like this:
  165.                                _AAAA_1111    _uuuu_pppp    _AAAA_3333
  166.                               _llll_eeee_ffff_tttt   _BBBB_2222   _rrrr_iiii_gggg_hhhh_tttt
  167.                                _CCCC_1111   _dddd_oooo_wwww_nnnn   _CCCC_3333
  168.      KEY_LL
  169.  
  170.  
  171.  
  172.  
  173.      KEY_A1               Upper left of keypad
  174.      KEY_A3               Upper right of keypad
  175.      KEY_B2               Center of keypad
  176.      KEY_C1               Lower left of keypad
  177.      KEY_C3               Lower right of keypad
  178.      KEY_BTAB             Back tab key
  179.      KEY_BEG              Beg(inning) key
  180.      KEY_CANCEL           Cancel key
  181.      KEY_CLOSE            Close key
  182.      KEY_COMMAND          Cmd (command) key
  183.      KEY_COPY             Copy key
  184.      KEY_CREATE           Create key
  185.      KEY_END              End key
  186.      KEY_EXIT             Exit key
  187.      KEY_FIND             Find key
  188.      KEY_HELP             Help key
  189.      KEY_MARK             Mark key
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.      KEY_MESSAGE          Message key
  207.      KEY_MOVE             Move key
  208.      KEY_NEXT             Next object key
  209.      KEY_OPEN             Open key
  210.      KEY_OPTIONS          Options key
  211.      KEY_PREVIOUS         Previous object key
  212.      KEY_REDO             Redo key
  213.      KEY_REFERENCE        Ref(erence) key
  214.      KEY_REFRESH          Refresh key
  215.      KEY_REPLACE          Replace key
  216.      KEY_RESTART          Restart key
  217.      KEY_RESUME           Resume key
  218.      KEY_SAVE             Save key
  219.      KEY_SBEG             Shifted beginning key
  220.      KEY_SCANCEL          Shifted cancel key
  221.      KEY_SCOMMAND         Shifted command key
  222.      KEY_SCOPY            Shifted copy key
  223.      KEY_SCREATE          Shifted create key
  224.      KEY_SDC              Shifted delete char key
  225.      KEY_SDL              Shifted delete line key
  226.      KEY_SELECT           Select key
  227.      KEY_SEND             Shifted end key
  228.      KEY_SEOL             Shifted clear line key
  229.      KEY_SEXIT            Shifted exit key
  230.      KEY_SFIND            Shifted find key
  231.      KEY_SHELP            Shifted help key
  232.      KEY_SHOME            Shifted home key
  233.      KEY_SIC              Shifted input key
  234.      KEY_SLEFT            Shifted left arrow key
  235.      KEY_SMESSAGE         Shifted message key
  236.      KEY_SMOVE            Shifted move key
  237.      KEY_SNEXT            Shifted next key
  238.      KEY_SOPTIONS         Shifted options key
  239.      KEY_SPREVIOUS        Shifted prev key
  240.      KEY_SPRINT           Shifted print key
  241.      KEY_SREDO            Shifted redo key
  242.      KEY_SREPLACE         Shifted replace key
  243.      KEY_SRIGHT           Shifted right arrow
  244.      KEY_SRSUME           Shifted resume key
  245.      KEY_SSAVE            Shifted save key
  246.      KEY_SSUSPEND         Shifted suspend key
  247.      KEY_SUNDO            Shifted undo key
  248.      KEY_SUSPEND          Suspend key
  249.      KEY_UNDO             Undo key
  250.  
  251. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  252.      All routines return the integer _EEEE_RRRR_RRRR upon failure and an integer value
  253.      other than _EEEE_RRRR_RRRR upon successful completion.
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272. NOTES
  273.      The header file _<<<<_cccc_uuuu_rrrr_ssss_eeee_ssss_...._hhhh_>>>> automatically includes the header files
  274.      _<<<<_ssss_tttt_dddd_iiii_oooo_...._hhhh_>>>> and _<<<<_uuuu_nnnn_cccc_tttt_rrrr_llll_...._hhhh_>>>>.
  275.  
  276.      Use of the escape key by a programmer for a single character function is
  277.      discouraged.
  278.  
  279.      When using _gggg_eeee_tttt_wwww_cccc_hhhh, _wwww_gggg_eeee_tttt_wwww_cccc_hhhh, _mmmm_vvvv_gggg_eeee_tttt_wwww_cccc_hhhh, or _mmmm_vvvv_wwww_gggg_eeee_tttt_wwww_cccc_hhhh, _nnnn_oooo_cccc_bbbb_rrrr_eeee_aaaa_kkkk mode and
  280.      _eeee_cccc_hhhh_oooo mode should not be used at the same time.  Depending on the state of
  281.      the tty driver when each character is typed, the program may produce
  282.      undesirable results.
  283.  
  284.      Note that _gggg_eeee_tttt_wwww_cccc_hhhh, _mmmm_vvvv_gggg_eeee_tttt_wwww_cccc_hhhh, and _mmmm_vvvv_wwww_gggg_eeee_tttt_wwww_cccc_hhhh may be macros.
  285.  
  286. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  287.      _cccc_uuuu_rrrr_ssss_eeee_ssss(3X), _cccc_uuuu_rrrr_ssss______iiii_nnnn_oooo_pppp_tttt_ssss(3X), _cccc_uuuu_rrrr_ssss______mmmm_oooo_vvvv_eeee(3X), _cccc_uuuu_rrrr_ssss______rrrr_eeee_ffff_rrrr_eeee_ssss_hhhh(3X).
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.